import java.awt.geom.Point2D;
import java.text.DecimalFormat;

import geotransform.coords.*;
import geotransform.ellipsoids.*;
import geotransform.transforms.*;

public class ConvRegionFileToUTM {
	
	  protected DecimalFormat df = new DecimalFormat("##0.00");
	
	public ConvRegionFileToUTM() {
        //Gdc_To_Utm_Converter.Init(new AN_Ellipsoid());   
       // Gdc_To_Utm_Converter.Init(new WE_Ellipsoid());  
	}
	
	public String converting(Point2D.Double lonlat)
	{
	   Gdc_Coord_3d gdc_point = new Gdc_Coord_3d();
	   Utm_Coord_3d utm_point = new Utm_Coord_3d(lonlat.getX(), lonlat.getY() ,0,(byte)55,false);
	   Utm_To_Gdc_Converter.Init(new IN_Ellipsoid());
	   Utm_To_Gdc_Converter.Convert(utm_point,gdc_point); // with points
	   return gdc_point.latitude + "," + gdc_point.longitude;
		
	}

}
